﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FuckData.Model;
using FuckCore.DAO;

namespace FuckData.DAO
{
    public class CommentDAO : BaseDAO<GoEasyEntities, tbl_Comment>
    {
        public List<tbl_Comment> GetListByShare(long ShareID)
        {
            var Result = from comment in ObjectContext.tbl_Comment
                         where comment.ShareID == ShareID
                         && comment.Status==1
                         select comment;
            return Result.Count()>0 ? Result.ToList() : null;
        }

    }
}
